package cn.lingyangwl.agile.auth.model.rqrs.ldp;

import cn.lingyangwl.agile.auth.model.entity.OAuth2Client;
import cn.lingyangwl.agile.model.constants.ValidationCons;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Collections;
import java.util.List;

/**
 * 身份源连接模板
 *
 * @author shenguangyang
 */
@Getter
@Setter
@ApiModel(value = "更新身份源连接模板")
public class ExtLdpConnectUpdateReq extends ExtLdpConnectBase {
    @NotNull(message = ValidationCons.NOT_EMPTY)
    private Long id;

    @ApiModelProperty(value = "场景")
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String scenes;

    /**
     * @see OAuth2Client#getId()
     */
    @ApiModelProperty(value = "客户端id")
    private List<Long> authClientIds = Collections.emptyList();
}
